﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Example14.aspx.cs" Inherits="Chapter08.Example14" %>

<!DOCTYPE html>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>代码清单 8-14 使用 code、 var、 samp 和 kbd 元素</title>
    <%--<base href="http://titan/listings/" />--%>
    <meta name="author" content="Adam Freeman" />
    <meta name="description" content="A simple example" />
    <meta charset="utf-8" />
    <link rel="shortcut icon" href="Example01.Favicon.ico" type="image/x-ico" />
</head>
<body>
    <form>
        <div>
            <p>
                <code>var fruits = ["apples", "oranges", "mangoes", "cherries"];<br />
                    document.writeln("I like " + fruits.length + "fruits");
                </code>
            </p>
            <p>
                The variable in this example is
                <var>fruits</var>
            </p>
            <p>
                The output from the code is:
                <samp>I like 4 fruits</samp>
            </p>
            <p>
                When prompted for my favorite fruit, I typed: <kbd>cherries</kbd>
            </p>
        </div>
    </form>
</body>
</html>
